package world0.gui;

import org.newdawn.slick.Color;
import org.newdawn.slick.Graphics;


public class ItemSlot extends Widget {
	
	private boolean isFreeX = true;
	private boolean isFreeY = true;
	
	public ItemSlot(int index, int x, int y, int width, int height) {
		super(index, x, y, width, height);
		
		createFrame();
		setColor(Color.blue);
	}
	
	public void draw(Graphics g) {
		super.draw(g);
		
		g.setColor(Color.black);
		g.drawString("#" + index, x + 12, y + 11);
	}
	
	public boolean isFreeX() {
		return isFreeX;
	}
	
	public boolean isFreeY() {
		return isFreeY;
	}
	
	public void setFreeY(boolean isFreeY) {
		this.isFreeY = isFreeY;
	}
	
	public void setFreeX(boolean isFreeX) {
		this.isFreeX = isFreeX;
	}
}
